import request from '@/utils/request'

// 投标保证金搜索，分页
export function getTenderDepositList(params) {
  return request({
    url: '/tenderDeposit/list',
    method: 'POST',
    params
  })
}

// 单条查询投标保证金
export function selectTenderDeposit(params) {
  return request({
    url: '/tenderDeposit/load',
    method: 'POST',
    params
  })
}

// 新增投标保证金信息
export function addTenderDeposit(data) {
  return request({
    url: '/tenderDeposit/add',
    method: 'POST',
    data,
    headers: {
      'Content-Type': 'multipart/form-data'
    }
  })
}

// 查询团队
export function selectTeam(params) {
  return request({
    url: '/tenderDeposit/team',
    method: 'post',
    params
  })
}

// 查询投标项目名称
export function selectTenderName(params) {
  return request({
    url: '/tenderDeposit/tenderName',
    method: 'POST',
    params
  })
}

// 删除单条投标保证金
export function deleteTenderDeposit(params) {
  return request({
    url: '/tenderDeposit/delete',
    method: 'POST',
    params
  })
}

// 修改投标保证金数据
export function updateTenderDeposit(data) {
  return request({
    url: '/tenderDeposit/update',
    method: 'POST',
    data,
    headers: {
      'Content-Type': 'multipart/form-data'
    }
  })
}
// 修改退还保证金状态
export function updateIsReturn(data) {
  return request({
    url: '/tenderDeposit/updateIsReturn',
    method: 'POST',
    data
  })
}
// 修改打入保证金状态
export function updateIsTransfer(data) {
  return request({
    url: '/tenderDeposit/updateTransfer',
    method: 'POST',
    data
  })
}

